package com.yanqu.road.entity.crossorewar;

import com.yanqu.road.entity.DataObject;

public class CrossUserOreWarHp extends DataObject {

    private long userId;

    private int activityId;

    //体力值
    private int hp;

    private long lastUpdateTime;//上次增加体力的时间

    private long todayUpdate;//今日是否重置过


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(userId != this.userId){
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(activityId != this.activityId){
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        if(hp != this.hp){
            this.hp = hp;
            setUpdateOption();
        }
    }

    public long getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(long lastUpdateTime) {
        if(lastUpdateTime != this.lastUpdateTime){
            this.lastUpdateTime = lastUpdateTime;
            setUpdateOption();
        }
    }

    public long getTodayUpdate() {
        return todayUpdate;
    }

    public void setTodayUpdate(long todayUpdate) {
        if(todayUpdate != this.todayUpdate){
            this.todayUpdate = todayUpdate;
            setUpdateOption();
        }
    }

}
